package xyz.lwm.lazycat.event;

import lombok.Getter;
import xyz.lwm.lazycat.utility.DateUtil;

import java.util.Date;

@Getter
public class AppStartEvent implements Event {

    private final long timeMills;

    public AppStartEvent() {
        this.timeMills = System.currentTimeMillis();
    }

    public Date getStartTime() {
        return new Date(timeMills);
    }

    public String getStartTimeStr() {
        return DateUtil.format(getStartTime(), DateUtil.DEFAULT_PATTERN);
    }

}
